<%= form_for(@session) do |f| %>
  <% if @session.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@session.errors.count, "error") %> prohibited this session from being saved:</h2>

      <ul>
      <% @session.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :course %><br />
    <%= f.text_field :course, :placeholder => "Format example: 'LMC 3710'" %>
  </div>
  <div class="field">
    <%= f.label :professor %><br />
    <%= f.text_field :professor, :placeholder => "Format example: 'Nassim'" %>
  </div>
  <div class="field">
    <%= f.label :info %><br />
    <%= f.text_field :info, :placeholder => "mm/dd/yyyy hr:min(am/pm) Location" %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
